package com.TestDemo;

import com.sun.org.apache.xml.internal.serialize.Serializer;
import com.sun.org.apache.xml.internal.serializer.utils.SerializerMessages_es;

public class TestBean {

    private String name;
    private int age;

    public TestBean() {
    }

    public TestBean(String name, int age) {
        this.name = name;    // this后面的是类的  = 后面的是参数
        this.age = age;
    }


    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "TestBean{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
